#include <iostream>
#include <ctime>
#include <cstdlib>

using namespace std;

void shaizi(int num);

int main(void)
{
	int num;

	cout << "num: ";
	cin >> num;

	shaizi(num);

	return 0;
}

void shaizi(int num)
{
	int i;
	int num1 = 0, num2 = 0, num3 = 0, num4 = 0, num5 = 0, num6 = 0;
	int zhi;
	int suiju;

	srand((unsigned)time(NULL));

	for(i = 0; i < num; i ++)
	{
		suiju = rand();
		zhi = suiju % 6;
		switch(zhi)
		{
			case 0:
				num6 ++;
				break;
			case 1:
                                num1 ++;
                                break;
                        case 2:
                                num2 ++;
                                break;
                        case 3:
                                num3 ++;
                                break;
                        case 4:
                                num4 ++;
                                break;
                        case 5:
                                num5 ++;
                                break;
		}
	}

	cout << "1:" << num1 << endl;
	cout << "2:" << num2 << endl;
	cout << "3:" << num3 << endl;
	cout << "4:" << num4 << endl;
	cout << "5:" << num5 << endl;
	cout << "6:" << num6 << endl;
}
